package com.nacos.dbservice.service;

import com.nacos.dbservice.mapper.UsersMapper;
import com.nacos.dbservice.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl implements UsersService {

    @Autowired
    UsersMapper usersMapper;


    @Override
    public List<Users> list(Users users ) {
        return usersMapper.list( users);
    }

    @Override
    public Users selectUsersByName(String name) {
        return usersMapper.selectUsersByName(name);
    }

    @Override
    public void updateUser(Users users) {
        usersMapper.updateUser(users);
    }


}
